import Taro from "@tarojs/taro";

export const error = (msg: string) => {
  Taro.showToast({
    duration: 1000,
    icon: "error",
    title: msg,
  });
};

export const alert = (msg: string) => {
  Taro.showToast({
    duration: 1000,
    icon: "success",
    title: msg,
  });
};
